<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<div th:replace="fragment/header::head"></div>
<body>
<div th:replace="fragment/sidebar::side"></div>
<!-- partial -->


<div class="card-body">
    <form class="forms-sample" th:action="@{/customerService/addVerify(current=1,size=10)}" method="post" onsubmit="return fun()">
        <script>
            function fun() {
                var x = document.getElementById("masterq");
                if(x.value == "true") {
                    // alert("尊敬的用户，您有该权限！");
                    return true;
                }
                else{
                    alert("尊敬的用户，您没有该权限！");
                    return false;
                }

            }
        </script>
        <div class="form-group">
            <label for="exampleInputEmail1">邮箱地址</label>
            <input type="email" class="form-control" id="exampleInputEmail1" placeholder="Email" name="email">
        </div>
        <div class="form-group">
            <label for="exampleInputName1">客服昵称</label>
            <input type="text" class="form-control" id="exampleInputName1" placeholder="Name" name="nickname">
        </div>
        <div class="form-group">
            <label for="exampleInputName2">真实姓名</label>
            <input type="text" class="form-control" id="exampleInputName2" placeholder="Name" name="realname">
        </div>
        <div class="form-group">
            <label for="exampleInputName3">客服工号</label>
            <input type="text" class="form-control" id="exampleInputName3" placeholder="Name" name="customerserviceid">
        </div>
        <div class="form-group">
            <label for="exampleInputName4">客服手机号码</label>
            <input type="tel" class="form-control" id="exampleInputName4" placeholder="Name" name="customerservicephone">
        </div>
        <div class="form-group">
            <label for="exampleInputPassword1">密码</label>
            <input type="password" class="form-control" id="exampleInputPassword1" placeholder="Password" name="password" >
        </div>
        <!--        style="display: none"-->
        <div style="display: none" class="form-group">
            <label for="masterq">管理员</label>
            <input type="text" class="form-control" id="masterq" placeholder="Password" th:value="${session.master}" >
        </div>

        <button type="submit" class="btn btn-success mr-2">确认</button>
        <button class="btn btn-light">取消</button>
    </form>
</div>

<div th:replace="fragment/footer::foot"></div>

</body>
</html>